package com.wintop.youyuan.dao;

import java.util.List;

import com.wintop.youyuan.model.BaseData;
import com.wintop.youyuan.model.DetailData;
import com.wintop.youyuan.model.PersonalsCondition;
import com.wintop.youyuan.model.Photo;

public interface UserInformationDao {
	public boolean updateData(Object data);

	public BaseData getBaseData(String userid);// 获取基本信息

	public int getBaseDataId(String userid);// 获取基本资料Id

	public String getIcon(String userid);// 获取用户头像

	public DetailData getDetailData(String userid);// 获取详细信息

	public int getDetailDataId(String userid);

	public PersonalsCondition getPersonalsCondition(String userid);// 获取交友条件信息

	public int getPersonalsConditionId(String userid);

	public List<Photo> getPhotos(String userid);// 获取相册

	public boolean addPhoto(Photo photo);

	public boolean deletePhoto(int id);

	public int getLoveNum(int sex, String province, String city, int minAge,
			int maxAge);// 获取搜索结果数

	public List<BaseData> getLoveBaseDatas(int sex, String province,
			String city, int minAge, int maxAge, int pageNum, int pageSize);// 获取搜索结果

}
